package br.com.fatecpg.projetohoroscopo.utils;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import android.widget.TextView;

public class HtmlStringUtils {

	public void setPrevisaoHoroscopo(TextView view, String html)
			throws Exception {
		String retorno = "";
		try {
			Document doc = Jsoup.parse(html);

			retorno = doc.select("div.right_box_no").first().text().trim();
			view.setText(retorno);
		} catch (Exception e) {
			throw new Exception(e.getMessage());
		}
	}
}
